package com.wyait.manage.web.work;

import com.wyait.manage.entity.Internship;
import com.wyait.manage.service.InternshipService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Internship)表控制层
 *
 * @author makejava
 * @since 2020-05-14 16:10:30
 */
@RestController
@RequestMapping("internship")
public class InternshipController {
    /**
     * 服务对象
     */
    @Resource
    private InternshipService internshipService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Internship selectOne(Integer id) {
        return this.internshipService.queryById(id);
    }

}